<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width">
    <title>Title</title>
    <link rel="stylesheet" href="../static/layui/css/layui.css" media="all">
</head>
<body>
<div class="layui-row layui-col-space15">
    <div class="layui-col-md6">
        <div class="layui-panel">
            <div style="padding: 10px;">
                <div class="layui-card">
                    <div class="layui-card-header">
                        <i class="layui-icon">&#xe665;</i>
                        商品统计
                    </div>
                    <div class="layui-card-body">
                        <strong id="goods_counts">test</strong><br>
                        当前分类总记录数<br>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
<script>
    let goods_counts = $.ajax({
        url: "/selectGoodsCounts",
        async: false
    }).responseText;
    $("#goods_counts").text(goods_counts);
    let sales_amount = $.ajax({
        url: "/selectSalesAmount",
        async: false
    }).responseText;
    $("#sales_amount").text(sales_amount);
</script>
</body>
</html>